<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('symbol/index')}">币种列表</a></li>
			<li class="active"><a>编辑币种</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('symbol/edit')}">
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$row.name}" readonly>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>买涨</label>
				<div class="col-md-6 col-sm-10">
				<hr>
					<span class="form-required"><b>开仓</b></span><br>
					方向：
					<select class="form-control" name="up_open_tick" style="width:150px;display: inline;">
						<option value="0">实时价</option>
						<option value="bids" <if $row.up_open_tick == 'bids'>selected</if>>买盘价</option>
						<option value="asks" <if $row.up_open_tick == 'asks'>selected</if>>卖盘价</option>
					</select>
					深度数量：
					<select class="form-control" name="up_open_depth" style="width:150px;display: inline;">
						<php>for ($i=1; $i <= 20; $i++) {</php>
							<option value="{$i}" <if $row.up_open_depth == $i>selected</if>>{$i}</option>
						<php>}</php>
					</select>
					深度聚合度：
					<select class="form-control" name="up_open_type" style="width:220px;display: inline;">
						<option value="step0" <if $row.up_open_type == 'step0'>selected</if>>无聚合</option>
						<option value="step1" <if $row.up_open_type == 'step1'>selected</if>>聚合度为报价精度*10</option>
						<option value="step2" <if $row.up_open_type == 'step2'>selected</if>>聚合度为报价精度*100</option>
						<option value="step3" <if $row.up_open_type == 'step3'>selected</if>>聚合度为报价精度*1000</option>
						<option value="step4" <if $row.up_open_type == 'step4'>selected</if>>聚合度为报价精度*10000</option>
						<option value="step5" <if $row.up_open_type == 'step5'>selected</if>>聚合度为报价精度*100000</option>
					</select>
					<br><hr>
					<span class="form-required"><b>平仓</b></span><br>
					方向：
					<select class="form-control" name="up_close_tick" style="width:150px;display: inline;">
						<option value="0">实时价</option>
						<option value="bids" <if $row.up_close_tick == 'bids'>selected</if>>买盘价</option>
						<option value="asks" <if $row.up_close_tick == 'asks'>selected</if>>卖盘价</option>
					</select>
					深度数量：
					<select class="form-control" name="up_close_depth" style="width:150px;display: inline;">
						<php>for ($i=1; $i <= 20; $i++) {</php>
							<option value="{$i}" <if $row.up_close_depth == $i>selected</if>>{$i}</option>
						<php>}</php>
					</select>
					深度聚合度：
					<select class="form-control" name="up_close_type" style="width:220px;display: inline;">
						<option value="step0" <if $row.up_close_type == 'step0'>selected</if>>无聚合</option>
						<option value="step1" <if $row.up_close_type == 'step1'>selected</if>>聚合度为报价精度*10</option>
						<option value="step2" <if $row.up_close_type == 'step2'>selected</if>>聚合度为报价精度*100</option>
						<option value="step3" <if $row.up_close_type == 'step3'>selected</if>>聚合度为报价精度*1000</option>
						<option value="step4" <if $row.up_close_type == 'step4'>selected</if>>聚合度为报价精度*10000</option>
						<option value="step5" <if $row.up_close_type == 'step5'>selected</if>>聚合度为报价精度*100000</option>
					</select>
				</div>
			</div>
			<hr>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>买跌</label>
				<div class="col-md-6 col-sm-10">
				<hr>
					<span class="form-required"><b>开仓</b></span><br>
					方向：
					<select class="form-control" name="down_open_tick" style="width:150px;display: inline;">
						<option value="0">实时价</option>
						<option value="bids" <if $row.down_open_tick == 'bids'>selected</if>>买盘价</option>
						<option value="asks" <if $row.down_open_tick == 'asks'>selected</if>>卖盘价</option>
					</select>
					深度数量：
					<select class="form-control" name="down_open_depth" style="width:150px;display: inline;">
						<php>for ($i=1; $i <= 20; $i++) {</php>
							<option value="{$i}" <if $row.down_open_depth == $i>selected</if>>{$i}</option>
						<php>}</php>
					</select>
					深度聚合度：
					<select class="form-control" name="down_open_type" style="width:220px;display: inline;">
						<option value="step0" <if $row.down_open_type == 'step0'>selected</if>>无聚合</option>
						<option value="step1" <if $row.down_open_type == 'step1'>selected</if>>聚合度为报价精度*10</option>
						<option value="step2" <if $row.down_open_type == 'step2'>selected</if>>聚合度为报价精度*100</option>
						<option value="step3" <if $row.down_open_type == 'step3'>selected</if>>聚合度为报价精度*1000</option>
						<option value="step4" <if $row.down_open_type == 'step4'>selected</if>>聚合度为报价精度*10000</option>
						<option value="step5" <if $row.down_open_type == 'step5'>selected</if>>聚合度为报价精度*100000</option>
					</select>
					<br><hr style="height:">
					<span class="form-required"><b>平仓</b></span><br>
					方向：
					<select class="form-control" name="down_close_tick" style="width:150px;display: inline;">
						<option value="0">实时价</option>
						<option value="bids" <if $row.down_close_tick == 'bids'>selected</if>>买盘价</option>
						<option value="asks" <if $row.down_close_tick == 'asks'>selected</if>>卖盘价</option>
					</select>
					深度数量：
					<select class="form-control" name="down_close_depth" style="width:150px;display: inline;">
						<php>for ($i=1; $i <= 20; $i++) {</php>
							<option value="{$i}" <if $row.down_close_depth == $i>selected</if>>{$i}</option>
						<php>}</php>
					</select>
					深度聚合度：
					<select class="form-control" name="down_close_type" style="width:220px;display: inline;">
						<option value="step0" <if $row.down_close_type == 'step0'>selected</if>>无聚合</option>
						<option value="step1" <if $row.down_close_type == 'step1'>selected</if>>聚合度为报价精度*10</option>
						<option value="step2" <if $row.down_close_type == 'step2'>selected</if>>聚合度为报价精度*100</option>
						<option value="step3" <if $row.down_close_type == 'step3'>selected</if>>聚合度为报价精度*1000</option>
						<option value="step4" <if $row.down_close_type == 'step4'>selected</if>>聚合度为报价精度*10000</option>
						<option value="step5" <if $row.down_close_type == 'step5'>selected</if>>聚合度为报价精度*100000</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$row.id}" />
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>